<?php
header("Content-Type:text/html;charset=GB2312");
echo 'CURL中文';
echo '<hr>';
//ÃƒÂ‚Ã‚Â´ÃƒÂƒÃ‚Â²ÃƒÂ‚Ã‚Â¿ÃƒÂ‚Ã‚ÂªcurlÃƒÂƒÃ‚Â€ÃƒÂ‚Ã‚Â©ÃƒÂƒÃ‚Â•ÃƒÂ‚Ã‚Â¹ÃƒÂƒÃ‚Â„ÃƒÂ‚Ã‚Â£ÃƒÂ‚Ã‚Â¿ÃƒÂƒÃ‚Â©ÃƒÂ‚Ã‚ÂºÃƒÂƒÃ‚Â³ÃƒÂ‚Ã‚Â£ÃƒÂ‚Ã‚Â¬ÃƒÂƒÃ‚ÂŠÃƒÂ‚Ã‚Â¹ÃƒÂƒÃ‚Â“ÃƒÂƒÃ‚Âƒphpinfo() ÃƒÂƒÃ‚Â„ÃƒÂƒÃ‚ÂœÃƒÂ‚Ã‚Â¹ÃƒÂ‚Ã‚Â»ÃƒÂ‚Ã‚Â¿ÃƒÂ‚Ã‚Â´ÃƒÂ‚Ã‚ÂµÃƒÂ‚Ã‚Â½curlÃƒÂ‚Ã‚ÂµÃƒÂƒÃ‚Â„ÃƒÂƒÃ‚ÂÃƒÂƒÃ‚Â…ÃƒÂƒÃ‚ÂÃƒÂ‚Ã‚Â¢ÃƒÂ‚Ã‚Â¡ÃƒÂ‚Ã‚Â£
//phpinfo();


$ch = curl_init();
curl_setopt($ch,CURLOPT_URL,"http://www.baidu.com");
curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);
$output = curl_exec($ch);
curl_close($ch);


//
//echo ' '.$output;
echo strlen($output);
echo "<hr>";
echo $output;
?>

